﻿using System;

namespace _026.泛型
{
	internal class Student
	{
		private int age;
		private string name;

		public Student(int age, string name)
		{
			this.age = age;
			this.name = name;
		}


		// 重写 tostring 方法
		public override string ToString()
		{
			string result = age + ":" + name;
			return result;
		}

	}
}
